<div class="yiiForm">
<?php
	echo EHtml::form();	
	EHtml::setOptions(array('errorElement'=> 'span'));
?>
<div style="padding:10px 110px">注：<span class="required">*</span>为必填项</div>
<div id="one1">
<div class="simple">
<?php echo CHtml::activeLabelEx($model,'type_name'); ?>
<?php echo EHtml::activeTextField($model,'type_name',array('size'=>20,'maxlength'=>20)); ?>
</div>
<div class="simple1">
<?php echo CHtml::activeLabelEx($model,'compute_ratio'); ?>
<?php echo EHtml::activeTextField($model,'compute_ratio',array('size'=>8,'maxlength'=>10,'value'=>$model->compute_ratio==''?100:$model->compute_ratio*100)); ?>
</div>
<div class="simple5" style="background-color: #ffffff;">
<?php echo CHtml::activeLabelEx($model,'remark'); ?>
<?php echo EHtml::activeTextArea($model,'remark',array('rows'=>3, 'cols'=>45)); ?>
</div>
</div>
<div class="action">
<?php echo EHtml::submitButton($update ? '更新信息' : '添加信息'); ?>
</div>

<?php echo EHtml::endForm(); ?>

</div><!-- yiiForm -->
<?php if($model->hasErrors()) echo "<script>alert('您填写的信息有误！请根据页面红色图标提示修改。');</script>";?>